//package com.example.dao;
//
//import com.example.model.pojo.ProblemEs;
//import org.springframework.data.elasticsearch.annotations.Highlight;
//import org.springframework.data.elasticsearch.annotations.HighlightField;
//import org.springframework.data.elasticsearch.annotations.Query;
//import org.springframework.data.elasticsearch.core.SearchHits;
//import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
//
//import java.util.List;
//
///**
// * @Description //TODO
// * @Date 2022/9/23 21:06
// * @Author cxy
// **/
//public interface ESProblemRepository extends ElasticsearchRepository<ProblemEs, String> {
//    List<ProblemEs> findByTitleOrLabel(String title,String label);
//    @Highlight(fields = {
//            @HighlightField(name = "title"),
//            @HighlightField(name = "label")
//    })
//    @Query("{\"match\":{\"title\":\"?0\"}}")
//    SearchHits<ProblemEs>find(String keyword);
//
//}
